﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace DAO
{
    public class DataProvider
    {
        // Tạo kết nối đến CSDL QuanLyKhachHang
        public static SqlConnection ConnectDB()
        {
            string connectionString = " Data Source=localhost;Initial Catalog =QL_NHA_HANG;Integrated Security=True";
            SqlConnection conn;
            conn = new SqlConnection(connectionString);
            conn.Open();
            return conn;
        }
    }
}